#lang racket
(define (pascal-triangle layer position)
  (if (or (= position 1) (= layer position))
      1
      (+ (pascal-triangle (- layer 1) (- position 1))
         (pascal-triangle (- layer 1) position))))
(pascal-triangle 4 2)